HTMLify
style.css
Views: 6 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Rancho&display=swap'); :root { --primary: #094b65; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } body { overflow-x: hidden; background: #fff; min-height: 100vh; } #header { position: absolute; top: 0; left: 0; width: 100%; padding: 30px 100px; display: flex; justify-content: space-between; align-items: center; z-index: 100; } #header .logo { color: var(--primary); font-weight: 700; font-size: 2em; text-decoration: none; } #header ul { display: flex; justify-content: center; align-items: center; } #header ul li { list-style: none; margin-left: 20px; } #header ul li a { text-decoration: none; padding: 6px 15px; color: var(--primary); border-radius: 20px; } #header ul li a:hover, #header ul li a.active { background: var(--primary); color: #fff; } section { position: relative; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; } section::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background: linear-gradient(to top, var(--primary), transparent); z-index: 10; } section img { position: absolute; top: 0px; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } section #text { position: absolute; color: var(--primary); font-size: 10vw; text-align: center; line-height: .55em; font-family: 'Rancho', cursive; transform: translatey(-50%); } section #text span { font-size: .20em; letter-spacing: 2px; font-weight: 400; } #btn { text-decoration: none; display: inline-block; padding: 8px 30px; background: #fff; color: var(--primary); font-size: 1.2em; font-weight: 500; letter-spacing: 2px; border-radius: 40px; transform: translatey(100px); } .sec { position: relative; padding: 100px; background: var(--primary); } .sec h2 { font-size: 3.5em; color: #fff; margin-bottom: 10px; } .sec p { font-size: 1em; color: #fff; } footer { position: relative; padding: 0px 100px; background: var(--primary); } footer a { text-decoration: none; color: #fff; } |